// for old browsers
window.undefined = window.undefined;

/**
 * @class BucketDev
 * BucketDev core utilities and functions.
 * @singleton
 */

$BucketDev = function(){
    $me = $(this);
    return {
        /**
         * The version of the framework
         * @type String
         */
        version : '1.0.0',
        versionDetail : {
            major : 1,
            minor : 0,
            patch : 0
        },
        /**
         * main url to where the server queries are made
         */
        URL: 'index.php'
    }
}();

$BucketDev.post = function(clas, method, config, _this){
    $.ajax({
        url: $Uninet.URL + "/" + clas + "/" + method,
        type: "POST",
        data: config.data,
        dataType: "json",
        context: _this || $(this),
        complete: config.complete,
        success: config.success,
        error: config.error
    });
}